import { configureStore } from "@reduxjs/toolkit";
import user from "./features/user";
const store = configureStore({
  reducer: {
    user,
  },
});

export type RootState = ReturnType<typeof store.getState>; //获动态取状态机数据类型
export type AppDispatch = typeof store.dispatch; //获取dispatch方法的类型

export default store;
